package com.bzkj.basicinfo.domain;

import com.bzkj.common.annotation.Excel;
import com.bzkj.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 往来单位映射关系对象 basic_customer_mapping
 * 
 * @author system
 * @date 2025-01-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CustomerMapping extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 码上放心客户ID */
    @Excel(name = "码上放心客户ID")
    private String msfxCustomerId;

    /** 码上放心客户名称 */
    @Excel(name = "码上放心客户名称")
    private String msfxCustomerName;

    /** 码上放心企业ID */
    @Excel(name = "码上放心企业ID")
    private String msfxEntId;

    /** ERP客户编码 */
    @Excel(name = "ERP客户编码")
    private String erpCustomerCode;

    /** ERP客户名称 */
    @Excel(name = "ERP客户名称")
    private String erpCustomerName;

    /** ERP单位编号 */
    @Excel(name = "ERP单位编号")
    private String erpDanwbh;

    /** 映射状态：1-正常，0-禁用 */
    @Excel(name = "映射状态", readConverterExp = "1=正常,0=禁用")
    private Integer status;

    /** 映射类型：1-手动映射，2-自动匹配 */
    @Excel(name = "映射类型", readConverterExp = "1=手动映射,2=自动匹配")
    private Integer mappingType;

    /** 匹配度（自动匹配时使用） */
    @Excel(name = "匹配度")
    private BigDecimal matchScore;

    /** 审核状态：0-待审核，1-已审核，2-已拒绝 */
    @Excel(name = "审核状态", readConverterExp = "0=待审核,1=已审核,2=已拒绝")
    private Integer auditStatus;

    /** 审核用户 */
    @Excel(name = "审核用户")
    private String auditUser;

    /** 审核时间 */
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date auditTime;

    /** 审核备注 */
    @Excel(name = "审核备注")
    private String auditRemark;

    /** 删除标记 */
    private Integer delFlag;
}
